/**
 * @desc 扁平化多维数组
 */
export const flatArr = arr => {
  const flattened = [].concat(...arr);
  return flattened.some(item => Array.isArray(item)) ? flatArr(arr) : flattened;
}